package svc;

import dao.MiscDao;
import domain.misc.Misc;

public class MiscSvc {
	MiscDao dao = new MiscDao();
	public Misc getMiscDetails(int fileNo){
		return dao.getMiscDetails(fileNo);
	}
	
	public boolean updateMiscDetails(int fileNo, Misc obj){
		obj.setP_tmrdmlac(obj.getP_tmrdmlac()/obj.getUnit());
		obj.setP_tmrdmdry(obj.getP_tmrdmdry()/obj.getUnit());
		obj.setDmi_dry(obj.getDmi_dry()/obj.getUnit());
		return dao.updateMiscDetails(fileNo, obj);
	}
}
